package cc.javaee.bbs.dao.activity;


import cc.javaee.bbs.dao.BaseDao;
import cc.javaee.bbs.model.KbrPrizeCustomer;
import cc.javaee.bbs.params.DbResultMap;
import cc.javaee.bbs.params.WebParams;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class PrizeCustomerDao extends BaseDao {
    String ns = "kbr_prize_customer.";

    public void insert(KbrPrizeCustomer kbrPrizeCustomer) {
        this.getSqlSession().insert(ns + "insert", kbrPrizeCustomer);
    }

    public List<KbrPrizeCustomer> find(KbrPrizeCustomer kbrPrizeCustomer) {
        List<KbrPrizeCustomer> list = this.getSqlSession().selectList(ns + "find", kbrPrizeCustomer);
        return list;
    }

    public List<DbResultMap> findDb(WebParams param) {
        List<DbResultMap> list = this.getSqlSession().selectList(ns + "findDb", param);
        return list;
    }
}